<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
<base href="<%=basePath%>">
    <link href=" themes/css/ui.common.css" rel="stylesheet" type="text/css" />
    <link href=" themes/css/ui.child.css" rel="stylesheet" type="text/css" />
    <link href=" themes/css/ui.tips.css" rel="stylesheet" type="text/css" />
    <link href=" themes/base/jquery.ui.button.css" rel="stylesheet" type="text/css" />
    <link id="skin_css" rel="stylesheet" type="text/css" href=" themes/css/ui.c.blue.css" />
    <script src=" Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src=" Scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
    <script src=" Scripts/jquery.json-2.2.min.js" type="text/javascript"></script>
    <script src=" Scripts/jquery.easyui.min.js" type="text/javascript"></script>
    <script src=" Scripts/ui.admincp.js" type="text/javascript" charset="UTF-8"></script>
    <script src=" Scripts/ui.tips.js" type="text/javascript"></script>
    <script src=" Scripts/ui.default.js" type="text/javascript" charset="UTF-8"></script> 
    <script src=" page/goods/js/goodsOrderHandler.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            goodsOrderHandlerMain();
            
        });
    
var submitHandler = function(items) {
//testGoods = items;

var goodsIdWithTotal = foreachHandler(eval(items),function(item){ 
return item.goodsId+","+item.orderTotal+";";
}); 

 location.href= "goodsOrder!apply.action?items="+goodsIdWithTotal;

}


    </script>
</head>
<body>
    <form id="form1"  >
    <div class="PageChild_Title">
        <img src=" themes/images/default/icons/archives.png" class="PageChild_Tbtnpic" />
        <span class="PageChild_separate"></span><span class="PageChild_TbtnText">
            <h2>
                申请物资</h2>
        </span><span class="PageChild_separate"></span>
        <div id="marker" class="red-tips">
        </div>
        <div class="clear">
        </div>
    </div>
    <div>
        <!--数据列表-->
        <!--工具栏按钮-->
        <div class="PageChild_Line">
            <span class="PageChild_ToolItem" style="width: 200px;"></span>
        </div>
        <div id="bannar">
            <div>
               
               选择类型:<s:select list="cateList" listKey="categoryId" listValue="categoryName" theme="simple" id="GoodsTypeSelector" headerKey="-1" headerValue="请选择"></s:select>
               选择物资:<select name="GoodsListSelector" id="GoodsListSelector" style="width: 200px;">
                </select>
                &nbsp;
               数量:<input type="text" value="1" min="1" max="99999999" style="width: 80px;" id="orderTotalInputBox"
                    class="easyui-numberbox goodsTotalInputBox" />
                <div class="PageChild_Where">
                    <input type="button" id="OrderButton" class="OkButton o-btn" value="申请" />
                    <span id="goodsOrderingTips" class="hiddenObject"><span>您可以申请的物资数量在&nbsp;<span>1</span>&nbsp;~&nbsp;<span
                        id="goodsTotalCanbeOrdered">10</span>&nbsp; 之间.</span> &nbsp;</span>
                </div>
            </div>
        </div>
        <div class="PageChild_List">
            <table width="100%" border="0" cellspacing="0">
                <tbody class="PageChild_List_head">
                    <tr>
                        <td width="27">
                            <img alt="" src=" themes/images/default/icons/pcde_314.png" width="16" height="16" />
                        </td>
                        <td width="200">
                            物资类型
                        </td>
                        <td width="400">
                            物资名称
                        </td>
                        <td width="150">
                            总量/剩余
                        </td>
                        <td width="120">
                            申请数量
                        </td>
                      
                        <td class="td_width40">
                            移除
                        </td>
                    </tr>
                </tbody>
                <tbody id="goodsInfoHtmlList" class="PageChild_List_main">
                    <tr id="tr_OrderInfo_____1" class="hiddenObject">
                        <td width="16" class="td_width25">
                            &nbsp;
                        </td>
                        <td>
                            <span id="txt_OrderInfo_CategoryName">&nbsp;</span>
                        </td>
                        <td>
                            <span id="txt_OrderInfo_Name">&nbsp;</span>
                        </td>
                        <td>
                            <span id="txt_OrderInfo_Total">20&nbsp;</span> /<span class="red-tips" id="txt_OrderInfo_Remain">&nbsp;10</span>
                        </td>
                        <td>    <input id="editor_1" class="textBox easyui-numberbox" type="text" style="width: 70px;"
                                    maxlength="10" oid="1" min="1" max="20" /> 
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="PageChild_Where">
            <asp:Label ID="lbl_list_count" runat="server"></asp:Label>
          
            <div>
                <input type="button" value="提交" class="o-btn SubmitButton" />
                &nbsp;&nbsp;
            </div>
        </div>
    </div>
    </form>
    <script type="text/javascript"> 
    </script>
</body>
</html>
